home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n20.arc / DRVRDY.LST < prev    next >
File List  |  1990-10-29  |  2KB  |  38 lines

  1. 0100 53       PUSH BX
  2. 0101 58       POP  AX              ;Set AX to zero
  3. 0102 354041   XOR  AX,4140
  4. 0105 354040   XOR  AX,4040         ;Set AX to 100
  5. 0108 50       PUSH AX
  6. 0109 5E       POP  SI              ;Set SI to 100
  7. 010A 53       PUSH BX
  8. 010B 58       POP  AX              ;Set AX to zero
  9. 010C 3470     XOR  AL,70
  10. 010E 284438   SUB  [SI+38],AL      ;Code at 138 becomes MOV AH,4C
  11. 0111 28443A   SUB  [SI+3A],AL      ;Code at 13A becomes INT 21
  12. 0114 284435   SUB  [SI+35],AL      ;Code at 135 becomes INT 75
  13. 0117 2450     AND  AL,50
  14. 0119 284436   SUB  [SI+36],AL      ;Code at 135 becomes INT 25
  15. 011C 50       PUSH AX
  16. 011D 5E       POP  SI              ;Set SI to 50
  17. 011E 53       PUSH BX
  18. 011F 58       POP  AX              ;Set AX to 0
  19. 0120 324432   XOR  AL,[SI+32]      ;Get first char of command line
  20. 0123 245F     AND  AL,5F           ;Capitalize it
  21. 0125 2C41     SUB  AL,41           ;Set to 0 for A:, 1 for B:, etc
  22. 0127 50       PUSH AX              ;Save the drive number
  23. 0128 53       PUSH BX
  24. 0129 59       POP  CX
  25. 012A 41       INC  CX              ;Set CX to 1
  26. 012B 53       PUSH BX
  27. 012C 5A       POP  DX              ;Set DX to 0
  28. 012D 53       PUSH BX
  29. 012E 58       POP  AX              ;Set AX to 0
  30. 012F 352121   XOR  AX,2121         ;2121 is lowest number not using...
  31. 0132 50       PUSH AX              ;... bytes 20h or below
  32. 0133 5B       POP  BX              ;Set BX to 2121
  33. 0134 58       POP  AX              ;Retrieve the drive number
  34. 0135 3D7559   CMP  AX,5975         ;(mod) Call absolute disk read
  35. 0138 244C     AND  AL,4C           ;(mod) Set up for errorlevel
  36. 013A 3D210D   CMP  AX,0D21         ;(mod) Exit with errorlevel
  37.  
  38.